package com.xy.common.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Configure {
	public static Properties p = new Properties();
	static {
		init();
	}

	private static void init() {
		try {
			InputStream in = Thread.currentThread().getContextClassLoader()
					.getResourceAsStream("config.properties");
			p.load(in);
		} catch (IOException e) {
			//Logger logger = Logger.getLogger("errorout");
			//logger.error("", e);
		}
	}

	public static String getProperty(String name) {
		 
		return p.getProperty(name);
	}
}
